<?php
namespace Admin\Model;
use Think\Model;
class StuModel extends Model{
	protected $fields = [
		'id',
		'name',
		'sex',
		'age',
		'classid',
		'time',
		'_pk' => 'id'
	];
	protected $_map = [
		'username' => 'name'
	];
	
	protected $_auto = [
		['time','time',3,'function'],
	];

	protected $_validate = [
		['name','require','姓名不能为空'],
	];
}

